<?php

include 'inc/conn.php';

$packageid = $_POST['packageid'];
$id = $_POST['imgId'];

$sql = "update ats_frontimages set packageid='$packageid' where id=$id";
$rs = mysql_query($sql)
        or die($sql);

echo 'updated';
?>
